<?php
	require('../../../../wp-blog-header.php');	
	load_plugin_textdomain('wp-richcomments', 'wp-content/plugins/wp-richcomments/lang');
	
	function encode($s) {
		$s = htmlentities(__($s, "wp-richcomments"));
		echo str_replace('\'', '\\\'', $s);
	}
?>

if (RCS) {
	alert("RichComments! cannot work due to name duplication..");
} else {
var RCS = { 
path: "<?php echo get_settings('siteurl') . '/wp-content/plugins/wp-richcomments'; ?>",
l18n: [
{ n: 'Do you want to insert photos and videos to your comment?', v: '<?php encode('Do you want to insert photos and videos to your comment?'); ?>' },
{ n: 'Click here.', v: '<?php encode('Click here.'); ?>' },
{ n: 'The resource has already been attached!', v: '<?php encode('The resource has already been attached!'); ?>' },
{ n: 'What do you want to insert?', v: '<?php encode('What do you want to insert?'); ?>' },
{ n: "URL not valid.", v: '<?php encode("URL not valid."); ?>' },
{ n: "Please insert here the URL of the Flickr page that contains the photo.", v: '<?php encode("Please insert here the URL of the Flickr page that contains the photo."); ?>' },
{ n: "Flickr photos", v: '<?php encode("Flickr photos"); ?>' },
{ n: "Image Found!", v: '<?php encode("Image Found!"); ?>' },
{ n: "Is the previewed image the one you were looking for?", v: '<?php encode("Is the previewed image the one you were looking for?"); ?>' },
{ n: "Please insert here the URL of the YouTube page that contains the video.", v: '<?php encode("Please insert here the URL of the YouTube page that contains the video."); ?>' },
{ n: "Youtube videos", v: '<?php encode("Youtube videos"); ?>' },
{ n: "Video Found!", v: '<?php encode("Video Found!"); ?>' },
{ n: "Is the previewed image a frame of the video you were looking for?", v: '<?php encode("Is the previewed image a frame of the video you were looking for?"); ?>' },
{ n: "OK", v: '<?php encode("OK"); ?>' },
{ n: "Use it!", v: '<?php encode("Use it!"); ?>' }
],
_e: function(s) {
for (var i=0; i<this.l18n.length; i++) {
	if (this.l18n[i].n == s)
		return this.l18n[i].v;
}
return s;
}
};
}